package com.wva.video.service;

import com.wva.video.domain.po.VideoInteraction;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author hong
 * @since 2025-03-09
 */
public interface VideoInteractionService extends IService<VideoInteraction> {
    /**
     * 点赞视频
     * @param videoID
     * @return 操作是否成功
     */
    boolean likeVideo(Long videoID);

    /**
     * 取消点赞
     * @param videoID
     * @return
     */
    boolean unlikeVideo(Long videoID);

    /**
     * 用户该视频是否点过赞
     * @param videoID
     * @return
     */
    boolean isLikeVideoByVideoId(Long videoID);

    /**
     * 获取稿件点赞总数
     * @param videoID
     * @return
     */
    Long getVideoLikeCountByVideoId(Long videoID);
}
